<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'App',
  mounted(){
		//刷新页面时也会执行
        window.addEventListener('beforeunload',()=>{
            this.$store.dispatch("setToken", "");
        });
	}

}
</script>

<style>
</style>
